package com.exonline.backstage.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu {
    private String id;
    private String mname;
    private String murl;
    private String mparent;
    private List<Menu> subMenus = new ArrayList<>();
    public List<Menu> addSubMenus (Menu menu) {
        subMenus.add(menu);
        return subMenus;
    }
}
